import { defineStore } from 'pinia'
import { } from '@/router/modules/index.js'

export const usePermissionStore = defineStore('permission', {
  state: () => {
    return {
      route: [],
      addRoutes: [],
      defaultRoutes: [],
      topbarRouters: [],
      sidebarRouters: [],
    }
  },
  actions: {
    setTopbarRouters(routes) {
      this.topbarRouters = routes
    },
    setSidebarRouters(routes) {
      this.sidebarRouters = routes
    }
  }
})
